package com.dubbo.demo.entity;

import java.io.Serializable;

import javax.servlet.http.HttpServletRequest;

/**
 * @author liufl
 * @version 创建时间：2017年7月25日 下午4:48:15
 * 类说明
 */
public class RequestParam implements Serializable {

	private static final long serialVersionUID = 4542888564614510152L;

	private HttpServletRequest req;
	
	public RequestParam(HttpServletRequest req){
		this.req = req;
	}
	
	public String getProgramePath(){
		String url=req.getScheme()+"://"+ req.getServerName()+":"+req.getServerPort()+req.getContextPath();//http://localhost:8080/dubbo_customer
		return url+":";
	}
}

